﻿namespace Stopwatch
{
    public interface IStorage
    {
        void Write<T>(T obj, string key = null) where T : class;

        T Read<T>(string key = null) where T : class;
        
        void Delete<T>() where T : class;

        void Delete(string key);

        bool Exists<T>() where T : class;

        bool Exists(string key);
    }
}
